﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;

namespace SmartParking.Model
{
    [Index(nameof(Name), IsUnique = true)]
    [Index(nameof(StartDate), nameof(EndDate), IsUnique = true)]
    public class PricingPlan : AuditedAggregateRoot<Guid>
    {
        public string Name { get; set; }
        public DateTime StartDate { get; set; }
        public DateTime EndDate { get; set; }
        public ICollection<MultistepPrice> Prices { get; set; }
    }
}
